﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Specification
{
    public abstract class LeafSpecification<T> : ISpecification<T>
    {
        protected string _Message;
        public abstract bool isSatisfiedBy(T objekt);

        public string Message
        {
            get { return this._Message; }
        }


        public ISpecification<T> remainderUnsatisfiedBy(T Candidate)
        {
            return isSatisfiedBy(Candidate) ? null : this;
        }
    }
}
